//---------------------------------------------------------------------------

#ifndef convexoH
#define convexoH
#include "poligono.h"
#include "lista.h"
#include <gl\gl.h>
#include <gl\glu.h>
#define EPSILON 0.001
//---------------------------------------------------------------------------
class Convexo:public Poligono{

         public:Lista <PV> * normales;
                Convexo(){};
                ~Convexo(){delete normales;
                           delete this->vertices;};
                           

                Convexo(Lista <PV> * vert);
               
                bool colision(PV* centro,PV * s, GLdouble radio,GLdouble &tin, PV *&normal);
                int getRebotereciente(int i){return rebotereciente[i];};
                  void setRebotereciente(int r, int i){rebotereciente[i] = r;};



};

#endif
